package io.kiki.sba.registry.store.api.meta;

import io.kiki.sba.registry.common.model.metaserver.MultiClusterSyncInfo;

import java.util.Set;


public interface MultiClusterSyncRepository {


    boolean insert(MultiClusterSyncInfo multiClusterSyncInfo);


    boolean update(MultiClusterSyncInfo multiClusterSyncInfo, long expectVersion);


    public Set<MultiClusterSyncInfo> queryLocalMultiClusterSyncInfoSet();


    public int remove(String remoteDataCenter, long dataVersion);

    MultiClusterSyncInfo query(String remoteDataCenter);
}
